<!DOCTYPE html>

<html lang="en" data-content_root="../../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

    <title>Regression testing &#8212; Pytch  documentation</title>
    <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
    <link rel="stylesheet" type="text/css" href="../../_static/classic.css?v=36340f97" />
    <link rel="stylesheet" type="text/css" href="../../_static/css/pytch-classic.css?v=0321735e" />
    
    <script src="../../_static/documentation_options.js?v=7f41d439"></script>
    <script src="../../_static/doctools.js?v=9bcbadda"></script>
    <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
    
    <link rel="icon" href="../../_static/favicon.ico"/>
    <link rel="author" title="About these documents" href="../../about.html" />
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="Using an external editor" href="../live-reload/index.html" />
    <link rel="prev" title="Unit testing" href="unit-testing.html" /> 
  </head><body>
<div class="NavBar">
  <a href="../../../app/"><h1>Pytch</h1></a>
  <ul>
    <a href="https://pytch.scss.tcd.ie/"><li>About Pytch</li></a>
    <a href="../../index.html"><li>Help</li></a>
    <a href="../../../app/tutorials/"><li>Tutorials</li></a>
    <a href="../../../app/my-projects/"><li>My projects</li></a>
  </ul>
</div>
<div class="warning-work-in-progress">
  <p>These help pages are incomplete — we are working on it!</p>
</div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="regression-testing">
<h1>Regression testing<a class="headerlink" href="#regression-testing" title="Link to this heading">¶</a></h1>
<p>This is manual currently.</p>
<p>Generate a zipfile of all tutorials under the “old” code by checking
out the old code and then doing:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>poetry run pytchbuild-gather-tutorials \
  -o /tmp/tuts-old.zip \
  -r $PYTCH_TUTORIALS_REPO_ROOT \
  --index-source RECIPES_TIP
</pre></div>
</div>
<p>Then generate a corresponding zipfile for the output under the “new”
code, by checking out the new code and then doing:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>poetry run pytchbuild-gather-tutorials \
  -o /tmp/tuts-new.zip \
  -r $PYTCH_TUTORIALS_REPO_ROOT \
  --index-source RECIPES_TIP
</pre></div>
</div>
<p>Unzip these two into their own directory structures and compare:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">cd</span> <span class="o">/</span><span class="n">tmp</span>
<span class="n">mkdir</span> <span class="n">tuts</span><span class="o">-</span><span class="n">old</span> <span class="n">tuts</span><span class="o">-</span><span class="n">new</span>
<span class="p">(</span> <span class="n">cd</span> <span class="n">tuts</span><span class="o">-</span><span class="n">old</span> <span class="o">&amp;&amp;</span> <span class="n">unzip</span> <span class="o">-</span><span class="n">q</span> <span class="o">../</span><span class="n">tuts</span><span class="o">-</span><span class="n">old</span><span class="o">.</span><span class="n">zip</span> <span class="p">)</span>
<span class="p">(</span> <span class="n">cd</span> <span class="n">tuts</span><span class="o">-</span><span class="n">new</span> <span class="o">&amp;&amp;</span> <span class="n">unzip</span> <span class="o">-</span><span class="n">q</span> <span class="o">../</span><span class="n">tuts</span><span class="o">-</span><span class="n">new</span><span class="o">.</span><span class="n">zip</span> <span class="p">)</span>
<span class="n">diff</span> <span class="o">-</span><span class="n">Naur</span> <span class="n">tuts</span><span class="o">-</span><span class="n">old</span> <span class="n">tuts</span><span class="o">-</span><span class="n">new</span>
</pre></div>
</div>
</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="Main">
        <div class="sphinxsidebarwrapper"><ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../webapp/user/index.html">Using the Pytch web app</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../vm/user/index.html">Writing Pytch programs</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../about.html">About Pytch</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../contact.html">Contact</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../../developer.html">Developer documentation</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../../developer/development-setup.html">Development setup</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../developer/design-overview.html">Design overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../vm/developer/index.html">VM</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../webapp/developer/index.html">Webapp</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../medialib/developer/index.html">Media library</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../developer/index.html">Website</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../index.html">Tools</a><ul class="current">
<li class="toctree-l3 current"><a class="reference internal" href="../index.html#tutorial-compiler-and-related-tools">Tutorial compiler and related tools</a></li>
<li class="toctree-l3"><a class="reference internal" href="../index.html#assembly-of-website-bundle">Assembly of website bundle</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../../source-build.html">Source and build information</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../releases/changelog.html">Changelog</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../legal/index.html">Legal information</a></li>
</ul>
<div class="docs-home-link"><hr>
  <ul>
    <li>
      <a href="../../index.html">Pytch help home</a>
    <li>
  </ul>
</div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
  </body>
</html>